package Queue;

public class PriorityNode {
    // 优先队列的链表的结点类
    // 加入了一个优先级的判断

    // 结点的数据域
    public Object data;
    // 结点的优先级
    public int priority;
    // 定义next结点
    public PriorityNode next;

    public PriorityNode(Object x, int priority) {
        this.data = x;
        this.priority = priority;
        this.next=null;
    }
}
